<style>
    .tree-folder{
        clear: both;
        background: none;
    }
    .tree-folder-open{
        clear: both;
        background: none;
    }
    .fa{
        margin-top: 3px;
    }
    .tree-icon{
        clear: both;
        background: none;
        display: none!important;
    }

</style>

{#<table style="width: 100%;height: 100%">#}
    {#<tbody>#}
    {#<tr style="height: 67px;"><td valign="top" colspan="2"><ul class="breadcrumb"><li><i class="fa fa-home fa-lg"></i> 主页</li><li>项目管理</li><li>计划模板</li></ul></td></tr>#}
    {#<tr>#}
        {#<td id="depTree">#}
            {#<div id="depList_toolbar" class="xh-datagrid-toolbar" style="line-height:20px;padding:5px 0 5px 10px;">#}
                {#{% if tempAdd %}#}
                {#<a id="bt_list_add" plain="true"><i class="fa fa-plus fa-lg fa-fw" style="color:#2baab1;"></i>新增</a>#}
                {#{% endif %}#}
                {#{% if tempEdit %}#}
                {#<a id="bt_list_manage" plain="true"><i class="fa fa-pencil fa-lg fa-fw" style="color:#2baab1;"></i>编辑</a>#}
                {#{% endif %}#}
                {#{% if tempDel %}#}
                {#<a id="bt_list_del" plain="true"><i class="fa fa-trash fa-lg fa-fw" style="color:#2baab1;"></i>删除</a>#}
                {#{% endif %}#}
                {#{% if planEdit %}#}
                {#<a id="bt_list_upload" plain="true"><i class="fa fa-upload fa-lg fa-fw" style="color:#2baab1;"></i>流程—更新节点</a>#}
                {#{% endif %}#}
            {#</div>#}

            {#为避免2次请求 将class="easyui-treegrid"去除 #}
            {#<table id="tempList" title="模板列表"  style="height: 100%"#}
                   {#data-options="#}
                {#url: '{{ url('bpm/template/getTemp') }}',#}
                {#method: 'post',#}
                {#rownumbers: true,#}
                {#idField: 'keyId',#}
                {#treeField: 'name',#}
                {#singleSelect:true,#}
                {#pagination: true,#}
                {#"  toolbar="#depList_toolbar">#}

                {#<thead>#}
                {#<tr>#}
                    {#<th data-options="field:'ck',checkbox:true"></th>#}
                    {#<th data-options="field:'keyId'" width="20" hidden>keyId</th>#}
                    {#<th data-options="field:'name'" width="220" align="left"></th>#}
                    {#<th data-options="field:'realId'" width="220" align="left" hidden></th>#}
                    {#<th data-options="field:'sExcuteDeps'" width="220" align="left">实施部门</th>#}
                    {#<th data-options="field:'sExcuteIds'" width="220" align="left">实施部门负责人</th>#}
                    {#<th data-options="field:'sRelatDeps'" width="220" align="left">相关部门</th>#}
                    {#<th data-options="field:'sRelatIds'" width="220" align="left">相关部门负责人</th>#}
                    {#<th data-options="field:'type'" width="" align="left" hidden>类型</th>#}
                    {#<th data-options="field:'iSort'" width="100" align="center">排序</th>#}

                    {#<th data-options="field:'tCreateDate'" width="150px" align="center">创建时间</th>#}
                    {#<th data-options="field:'iCreateUserId'" width="100px" align="left">创建用户</th>#}
                    {#<th data-options="field:'tLastModifyDate'" width="150px" align="center">最后修改时间</th>#}
                    {#<th data-options="field:'iLastModifyUserId'" width="100px" align="left">最后修改用户</th>#}
                {#</tr>#}
                {#</thead>#}
            {#</table>#}
        {#</td>#}
    {#</tr>#}
    {#</tbody>#}
{#</table>#}

<table style="width: 100%;height: 100%">
    {% if NavUl is defined %}
        <tr style="height: 67px">
            <td valign="top">{{ NavUl }}</td>
        </tr>
    {% endif %}
    <tr style="height:100%;" >
        <td class="xh-datagrid">{{ List }}</td>
    </tr>
    {% if Form is defined %}
        <tr>
            <td valign="top">
                <form id="xh_form" class="xh-form xh-hidden" method="post">
                    <div class="smart-widget">
                        <div class="smart-widget-inner">
                            <div class="smart-widget-body">
                                <div class="xh-area-form">
                                    {{ Form }}
                                </div>
                                {% if FormButton is defined %}
                                    <div class="xh-area-button" style="padding-left: 65px;">
                                        {{ FormButton }}
                                    </div>
                                {% endif %}
                            </div>
                        </div>
                    </div>
                </form>
            </td>
        </tr>
    {% endif %}
</table>
